* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

  database connect time: 0.0004 seconds. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	29.12.2021 	17:27:18 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	29.12.2021 	17:27:18 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0115ede1a0, size: 400. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

All plugins have been loaded. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:27:19 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	29.12.2021 	17:27:20 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	29.12.2021 	17:27:20 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.223.1:5949/,  http://172.16.153.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.223.1:5949/, https://172.16.153.1:5949/. 	29.12.2021 	17:27:20 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.223.1:5949, 172.16.153.1:5949/. 	29.12.2021 	17:27:20 	lx 	(5. palvelin)

--- server started in 0.0021 seconds, 2021-12-29 17:27:20, used memory 3097.1 kb --- 	 5. 	29.12.2021 	17:27:20 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	29.12.2021 	17:27:20 	lx 	(5. palvelin)

*** tcp close for sock 75, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	17:29:13 	lx 	(5. palvelin)

closing socket '75'. 	29.12.2021 	17:29:13 	lx 	(5. palvelin)

*** tcp close for sock 76, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	17:29:13 	lx 	(5. palvelin)

closing socket '76'. 	29.12.2021 	17:29:13 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            4616
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	29.12.2021 	17:29:13 	lx 	(5. palvelin)

--- server stopped ---. 	29.12.2021 	17:29:13 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0115ede1a0. 	29.12.2021 	17:29:13 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

  database connect time: 0.0004 seconds. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	29.12.2021 	17:38:19 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	29.12.2021 	17:38:19 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01236b3200, size: 400. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

All plugins have been loaded. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.223.1:5949/,  http://172.16.153.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.223.1:5949/, https://172.16.153.1:5949/. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.223.1:5949, 172.16.153.1:5949/. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

--- server started in 0.0022 seconds, 2021-12-29 17:38:21, used memory 3109.7 kb --- 	 5. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	29.12.2021 	17:38:21 	lx 	(5. palvelin)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	17:44:41 	lx 	(5. palvelin)

closing socket '72'. 	29.12.2021 	17:44:41 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	17:44:41 	lx 	(5. palvelin)

closing socket '73'. 	29.12.2021 	17:44:41 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            16480
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	29.12.2021 	17:44:41 	lx 	(5. palvelin)

--- server stopped ---. 	29.12.2021 	17:44:41 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01236b3200. 	29.12.2021 	17:44:41 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:44:56 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	17:44:56 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	17:44:56 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	17:44:56 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:44:56 	lx 	(1. Application process)

  database connect time: 0.0005 seconds. 	29.12.2021 	17:44:56 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	17:44:56 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	17:44:57 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:44:57 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	29.12.2021 	17:44:57 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	29.12.2021 	17:44:57 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

  database connect time: 0.0003 seconds. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0127b8fd60, size: 400. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

All plugins have been loaded. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.223.1:5949/,  http://172.16.153.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.223.1:5949/, https://172.16.153.1:5949/. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.223.1:5949, 172.16.153.1:5949/. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

--- server started in 0.0027 seconds, 2021-12-29 17:44:58, used memory 3114.8 kb --- 	 5. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	29.12.2021 	17:44:58 	lx 	(5. palvelin)

Print folder does not exist: Mac:Users:pasi:Manage:capacic:finvoice:print:. 	29.12.2021 	17:45:31 	ap_ei_DocToPrintFolderCopy 	(9. Finvoice vastaanotto)

Print folder does not exist: Mac:Users:pasi:Manage:capacic:finvoice:print:. 	29.12.2021 	17:45:45 	ap_ei_PRINT 	(9. Finvoice vastaanotto)

Valitse luettava dokumentti listalta. 	29.12.2021 	17:45:45 	 	(9. Finvoice vastaanotto)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	17:52:49 	lx 	(5. palvelin)

closing socket '72'. 	29.12.2021 	17:52:49 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	17:52:49 	lx 	(5. palvelin)

closing socket '73'. 	29.12.2021 	17:52:49 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            20560
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	29.12.2021 	17:52:49 	lx 	(5. palvelin)

--- server stopped ---. 	29.12.2021 	17:52:49 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0127b8fd60. 	29.12.2021 	17:52:49 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

  database connect time: 0.0009 seconds. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

* preference 'system/nc_server_start.json', organization '0' was loaded from database 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

error: preference 'system/nc_server_start.json' was not found
  [stack traceback:
	/Users/pasi/nc/nc-server/lib/util.lua:550: in function 'printError'
	/Users/pasi/nc/nc-server/lib/db/dprf.lua:466: in function 'preferenceFromJson'
	/Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:44: in function </Users/pasi/nc/nc-server/manager/4d/nc_server_4d.lua:27>
	[C]: in function 'pcall'
	/Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:70: in function </Users/pasi/nc/nc-server/manager/4d/run_from_4d.lua:19>]
. 	29.12.2021 	17:54:21 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	29.12.2021 	17:54:21 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

  database connect time: 0.0002 seconds. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01161f24b0, size: 400. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

All plugins have been loaded. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.223.1:5949/,  http://172.16.153.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.223.1:5949/, https://172.16.153.1:5949/. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.223.1:5949, 172.16.153.1:5949/. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

--- server started in 0.0021 seconds, 2021-12-29 17:54:23, used memory 3020.4 kb --- 	 5. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	29.12.2021 	17:54:23 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-29 17:55:53
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 654
Content-Uncompressed-Length: 878

LZ4. 	29.12.2021 	17:55:53 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	17:55:53 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	29.12.2021 	17:55:53 	lx 	(5. palvelin)

  database connect time: 0.0002 seconds. 	29.12.2021 	17:55:53 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	29.12.2021 	17:55:53 	lx 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 9, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	17:55:53 	_lx_ExecuteSqlNew 	(5. palvelin)

 1. answer time: 00:00:00.00222
  
SELECT DISTINCT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id
 FROM product pr
 WHERE pr.product_id IS NOT NULL. 	29.12.2021 	17:55:53 	lx 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email FROM company co  WHERE co.transfer_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 6, first value: 'OTAVA'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	17:56:04 	_lx_ExecuteSqlNew 	(5. palvelin)

Sql field error, field number is not valid, field: 'ord.company_id', sql:
	SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 	29.12.2021 	17:58:58 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id  FROM invoice inv  WHERE inv.state NOT IN ('LO','PE')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	17:58:58 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Table 'ORD' is not declared in the FROM clause. (SQLS 1103)
Failed to validate column 'COMPANY_ID'. (SQLS 1717)
Failed to validate SELECT item 5. (SQLS 1716)
Failed to validate SELECT list. (SQLS 1704)
Failed to validate SELECT command. (SQLS 1726)
Table 'ORD' is not declared in the FROM clause.Failed to validate SELECT command. (SQLS 1103)

SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
 	29.12.2021 	17:58:58 	_lx_ExecuteSqlNew 	(5. palvelin)

4d execute sql error -1: Error 0, Table 'ORD' is not declared in the FROM clause. (SQLS 1103)
Failed to validate column 'COMPANY_ID'. (SQLS 1717)
Failed to validate SELECT item 5. (SQLS 1716)
Failed to validate SELECT list. (SQLS 1704)
Failed to validate SELECT command. (SQLS 1726)
Table 'ORD' is not declared in the FROM clause.Failed to validate SELECT command. (SQLS 1103)

SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9. 	29.12.2021 	17:58:58 	_lx_SERVER 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 9, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	17:59:08 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT co.record_id FROM company co WHERE co.transfer_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.modifier_id, co.email FROM company co  WHERE co.transfer_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 6, first value: 'OTAVA'
 - query name: new:form/nc/erp-sync/query/customer.json. 	29.12.2021 	17:59:10 	_lx_ExecuteSqlNew 	(5. palvelin)

Sql field error, field number is not valid, field: 'ord.company_id', sql:
	SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 	29.12.2021 	18:00:12 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id  FROM invoice inv  WHERE inv.state NOT IN ('LO','PE')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	18:00:12 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Table 'ORD' is not declared in the FROM clause. (SQLS 1103)
Failed to validate column 'COMPANY_ID'. (SQLS 1717)
Failed to validate SELECT item 5. (SQLS 1716)
Failed to validate SELECT list. (SQLS 1704)
Failed to validate SELECT command. (SQLS 1726)
Table 'ORD' is not declared in the FROM clause.Failed to validate SELECT command. (SQLS 1103)

SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
 	29.12.2021 	18:00:12 	_lx_ExecuteSqlNew 	(5. palvelin)

Sql field error, field number is not valid, field: 'ord.company_id', sql:
	SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 	29.12.2021 	18:01:11 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id  FROM invoice inv  WHERE inv.state NOT IN ('LO','PE')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	18:01:11 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Table 'ORD' is not declared in the FROM clause. (SQLS 1103)
Failed to validate column 'COMPANY_ID'. (SQLS 1717)
Failed to validate SELECT item 5. (SQLS 1716)
Failed to validate SELECT list. (SQLS 1704)
Failed to validate SELECT command. (SQLS 1726)
Table 'ORD' is not declared in the FROM clause.Failed to validate SELECT command. (SQLS 1103)

SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, ord.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id
 FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
 	29.12.2021 	18:01:11 	_lx_ExecuteSqlNew 	(5. palvelin)

SELECT inv.record_id FROM invoice inv WHERE inv.state NOT IN ('LO','PE') ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.state NOT IN ('LO','PE')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	18:02:34 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Operation VK_LONG  = VK_STRING  is not type safe. (SQLS 1108)
Failed to validate IN predicate. (SQLS 1710)
Failed to validate WHERE clause. (SQLS 1705)
Failed to validate SELECT command. (SQLS 1726)
Operation VK_LONG  = VK_STRING  is not type safe.Failed to validate SELECT command. (SQLS 1108)

SELECT inv.record_id FROM invoice inv WHERE inv.state NOT IN ('LO','PE') ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
SELECT inv.record_id FROM invoice inv WHERE inv.state NOT IN ('LO','PE') ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
 	29.12.2021 	18:02:34 	_lx_ExecuteSqlNew 	(5. palvelin)

4d execute sql error -1: Error 0, Operation VK_LONG  = VK_STRING  is not type safe. (SQLS 1108)
Failed to validate IN predicate. (SQLS 1710)
Failed to validate WHERE clause. (SQLS 1705)
Failed to validate SELECT command. (SQLS 1726)
Operation VK_LONG  = VK_STRING  is not type safe.Failed to validate SELECT command. (SQLS 1108)

SELECT inv.record_id FROM invoice inv WHERE inv.state NOT IN ('LO','PE') ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9. 	29.12.2021 	18:02:34 	_lx_SERVER 	(5. palvelin)

SELECT inv.record_id FROM invoice inv WHERE inv.state NOT IN ('LO','PE') ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.state NOT IN ('LO','PE')  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	18:02:44 	_lx_ExecuteSqlNew 	(5. palvelin)

sql: Error 0, Operation VK_LONG  = VK_STRING  is not type safe. (SQLS 1108)
Failed to validate IN predicate. (SQLS 1710)
Failed to validate WHERE clause. (SQLS 1705)
Failed to validate SELECT command. (SQLS 1726)
Operation VK_LONG  = VK_STRING  is not type safe.Failed to validate SELECT command. (SQLS 1108)

SELECT inv.record_id FROM invoice inv WHERE inv.state NOT IN ('LO','PE') ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
SELECT inv.record_id FROM invoice inv WHERE inv.state NOT IN ('LO','PE') ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv
 WHERE inv.state NOT IN ('LO','PE')
 ORDER BY inv.invoice_id
 INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
'
 	29.12.2021 	18:02:44 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.state IS NOT NULL ORDER BY inv.invoice_id INTO :_lx_atExe1
 - original query: SELECT inv.our_reference, inv.invoice_id, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.your_reference, inv.invoice_text, inv.record_id FROM invoice inv  WHERE inv.state IS NOT NULL  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 2, first value: '2200002/PM'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	29.12.2021 	18:05:01 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 9, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	18:07:10 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id IS NOT NULL INTO :_lx_atExe1
 - original query: SELECT pr.product_group, pr.product_id, pr.project_id, pr.name, pr.sales_price__unit, pr.stock_balance__unit, pr.info, pr.record_id FROM product pr  WHERE pr.product_id IS NOT NULL  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6
 - result _lx_atExe1 size: 9, first value: ''
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	29.12.2021 	18:07:21 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	29.12.2021 	18:12:53 	lx 	(5. palvelin)

closing socket '77'. 	29.12.2021 	18:12:53 	lx 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 924 bytes ***. 	29.12.2021 	18:12:53 	lx 	(5. palvelin)

closing socket '78'. 	29.12.2021 	18:12:53 	lx 	(5. palvelin)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	29.12.2021 	18:13:32 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	18:13:32 	lx 	(5. palvelin)

closing socket '72'. 	29.12.2021 	18:13:32 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	18:13:32 	lx 	(5. palvelin)

closing socket '73'. 	29.12.2021 	18:13:32 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          12
poll.fd_count:        0
pollCount:            50200
pollInCount:          14
pollOutCount:         0
pollCloseCount:       2
pollErrCount:         0
fd add/remove count:  4/4
totalBytesReceived:   11668
totalBytesSent:       11751. 	29.12.2021 	18:13:32 	lx 	(5. palvelin)

--- server stopped ---. 	29.12.2021 	18:13:32 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01161f24b0. 	29.12.2021 	18:13:32 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	29.12.2021 	18:13:32 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	29.12.2021 	19:26:54 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

  database connect time: 0.0005 seconds. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_demo'. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0115871cf0, size: 400. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

All plugins have been loaded. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.192:5949/,  http://192.168.223.1:5949/,  http://172.16.153.1:5949/
                          https://127.0.0.1:5949/, https://192.168.32.192:5949/, https://192.168.223.1:5949/, https://172.16.153.1:5949/. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.192:5949, 192.168.223.1:5949, 172.16.153.1:5949/. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

--- server started in 0.0051 seconds, 2021-12-29 19:26:56, used memory 3095.2 kb --- 	 5. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	29.12.2021 	19:26:56 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2021-12-29 19:27:03
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 758
Content-Uncompressed-Length: 1041

LZ4. 	29.12.2021 	19:27:03 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	29.12.2021 	19:27:03 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	29.12.2021 	19:27:03 	lx 	(5. palvelin)

  database connect time: 0.0001 seconds. 	29.12.2021 	19:27:03 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	29.12.2021 	19:27:03 	lx 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id = '' ORDER BY inr.row_number INTO :_lx_atExe1
 - original query: SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	29.12.2021 	19:27:03 	_lx_ExecuteSqlNew 	(5. palvelin)

 1. answer time: 00:00:00.00108
  
SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price
 FROM invoice_row inr
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id
 WHERE inv.record_id = ''
 ORDER BY inr.row_number. 	29.12.2021 	19:27:03 	lx 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id = '' ORDER BY inr.row_number INTO :_lx_atExe1
 - original query: SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	29.12.2021 	19:27:09 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 78, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 029 bytes ***. 	29.12.2021 	19:29:07 	lx 	(5. palvelin)

closing socket '78'. 	29.12.2021 	19:29:07 	lx 	(5. palvelin)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id = '' ORDER BY inr.row_number INTO :_lx_atExe1
 - original query: SELECT inr.row_number, inr.product_id, pr.project_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id = ''  ORDER BY inr.row_number  INTO :_lx_alExe1,:_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-sales.json. 	29.12.2021 	19:29:12 	_lx_ExecuteSqlNew 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

closing socket '73'. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

*** tcp close for sock 77, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

closing socket '77'. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          3
poll.fd_count:        1
pollCount:            6720
pollInCount:          5
pollOutCount:         0
pollCloseCount:       1
pollErrCount:         0
fd add/remove count:  4/3
totalBytesReceived:   3094
totalBytesSent:       1184. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 78
. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

closing socket '78'. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0115871cf0. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0115871cf0, size: 400. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

--- server stopped ---. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0115871cf0. 	29.12.2021 	19:29:29 	lx 	(5. palvelin)

